class CreatePersonalTerminals < ActiveRecord::Migration
  def change
    create_table :personal_terminals do |t|
      t.string :mac
      t.references :account

      t.timestamps
    end
    add_index :personal_terminals, :account_id
    add_index :personal_terminals, :mac, unique: true
  end
end
